package com.wilson.eduservice.client;

import com.wilson.commonutils.R;
import org.springframework.stereotype.Component;

import java.util.List;

@Component //教给spring管理,兜底方法，熔断机制
public class VodFileDegradeFeignClient implements VodClient{
    //出错之后会执行
    @Override
    public R removeVideo(String videoId) {
        return R.error().message("删除视频出错了");
    }

    @Override
    public R removeBatch(List<String> videoIdList) {
        return R.error().message("删除多个视频出错了");
    }
}
